export const getCSSVariable = (name: string, prefix: string = '--color-'): string => {
  let body = window.getComputedStyle(document.body);
  return body.getPropertyValue(prefix + name).trim();
};

/**
 * 获取指定的css色值
 */
export const getCSSColor = (name: string) => {
  return getCSSVariable(name);
};
